package cn.iocoder.yudao.module.game.dal.mysql.tripartiteList;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.game.dal.dataobject.tripartiteList.TripartiteListDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.game.controller.admin.tripartiteList.vo.*;

/**
 * 三方列表 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface TripartiteListMapper extends BaseMapperX<TripartiteListDO> {

    default PageResult<TripartiteListDO> selectPage(TripartiteListPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<TripartiteListDO>()
                .eqIfPresent(TripartiteListDO::getMemberId, reqVO.getMemberId())
                .likeIfPresent(TripartiteListDO::getMemberName, reqVO.getMemberName())
                .eqIfPresent(TripartiteListDO::getStatus, reqVO.getStatus())
                .betweenIfPresent(TripartiteListDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(TripartiteListDO::getId));
    }

}